GET whatismyip.org
nano ~/getip
GET whatismyip.org > .myip echo "" >> .myip sleep 1 GET whatismyip.org >> .myip echo "" >> .myip sleep 1 GET whatismyip.org >> .myip echo "" >> .myip
sh ~/getip
cat ~/.myip
92.122.18.135 92.122.18.135 92.122.18.135
cat ~/.myip | msmtp johnny@whitehouse.gov
cat ~/.myip | mail johnny@whitehouse.gov
nano ~/getip
... cat .myip | msmtp johnny@whitehouse.gov
chmod 700 ~/getip
sh ~/getip
Le système crontab intégré à unix/linux permet une programmation simple de l'exécution de commandes et scripts.
crontab -l > cron
nano cron
23 8,12,15,18 * * 1-5 /home/johnny/getip # à 08:23 12:23 15:23 et 18:23 tous les jours du lundi au vendredi # parce que les soirs et week-end je suis à la maison # et que c'est encore plus simple de récupérer mon IP
crontab ~/cron
crontab -l
... 23 8,12,15,18 * * 1-5 /home/johnny/getip ...
rm ~/cron
kerkael création de la page le 23/08/2009